package cn.stylefeng.guns.modular.hx.storage.model.result;

import cn.stylefeng.guns.modular.hx.basic.entity.HxBasicGoods;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @author : like
 * @date : 2024/8/19 18:09
 * @Version: 1.0
 */
@Data
@NoArgsConstructor
public class ConversionResult {
    private  BigDecimal num1;
    private  BigDecimal num2;
    private BigDecimal convertedNum;
    private HxBasicGoods rates;

    public ConversionResult(BigDecimal convertedNum, HxBasicGoods rates) {
        this.convertedNum = convertedNum;
        this.rates = rates;
    }

    public ConversionResult(BigDecimal convertedNum, HxBasicGoods rates, BigDecimal num1, BigDecimal num2) {
        this.convertedNum = convertedNum;
        this.rates = rates;
        this.num1 = num1;
        this.num2 = num2;
    }
}
